package com.example.administrator.yuejian_15.model;


import com.example.administrator.yuejian_15.bean.SuccessBean;
import com.example.administrator.yuejian_15.iface.SetPasswordInface;
import com.example.administrator.yuejian_15.listener.TListener;
import com.example.administrator.yuejian_15.service.AllService;

import retrofit2.Call;
import retrofit2.Retrofit;

public class SetPasswordModel extends RetrofitBaseModel implements SetPasswordInface<SuccessBean> {

    private AllService allService;
    private Retrofit retrofit;
    public SetPasswordModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }


    @Override
    public void setPassword(String uid, String password, TListener<SuccessBean> tListener) {
        Call<SuccessBean> call =allService.setPassword(uid,password);
        callenqueue(call,tListener);
    }
}
